package com.JDK.ThreadPoolExecutor;

import java.util.concurrent.*;

public class MyFutureTask<V> extends FutureTask<V> {

    private Callable callable;

    public MyFutureTask(Callable<V> callable) {
        super(callable);
        this.callable = callable;
    }

    public MyFutureTask(Runnable runnable, V result) {
        super(runnable, result);
    }

    public Callable getCallable(){
        return this.callable;
    }

}
